package main

import (
	"gosync/cmd"
	"os"

	"github.com/codegangsta/cli"
)

const APP_VER = "0.1.0.0 Beta"

func main() {
	app := cli.NewApp()
	app.Name = "gosync"
	app.Usage = "通用文件传输"
	app.Version = APP_VER
	app.Author = "Forrest Sun"
	app.Email = "sunsl@live.com"
	app.Commands = []cli.Command{
		cmd.CmdClient,
		cmd.CmdServer,
	}

	app.Flags = append(app.Flags, []cli.Flag{}...)
	app.Run(os.Args)
}
